package org.dromara.system.pojo.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import org.dromara.common.web.core.domain.BaseVO;

import java.io.Serial;
import java.time.LocalDateTime;

/**
 * 系统登录日志 VO。
 *
 * @author mkj
 * @since 2024-07-20
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = true)
@Schema(description = "系统登录日志")
public class SysLoginLogVO extends BaseVO {

    @Serial
    private static final long serialVersionUID = 1L;


    @Schema(description = "id")
    private Long id;

    @Schema(description = "用户账号")
    private String userName;

    @Schema(description = "客户端")
    private String clientKey;

    @Schema(description = "设备类型")
    private String deviceType;

    @Schema(description = "登录IP地址")
    private String ipaddr;

    @Schema(description = "登录地点")
    private String loginLocation;

    @Schema(description = "浏览器类型")
    private String browser;

    @Schema(description = "操作系统")
    private String os;

    @Schema(description = "结果码")
    private String resCode;

    @Schema(description = "提示消息")
    private String msg;

    @Schema(description = "访问时间")
    private LocalDateTime loginTime;
}
